$(document).ready(function(){
    $('.modal').modal({
            opacity: .5, // Opacity of modal background
            in_duration: 300, // Transition in duration
            out_duration: 200, // Transition out duration
            starting_top: '4%', // Starting top style attribute
            ending_top: '20%', // Ending top style attribute
        }
    );
});